package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PersonalMessage;
import cn.wolfcode.trip.base.query.PersonalMessageQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface PersonalMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonalMessage record);

    PersonalMessage selectByPrimaryKey(Long id);

    List<PersonalMessage> selectAll();

    int updateByPrimaryKey(PersonalMessage record);

    List<PersonalMessage> queryForSenderByGetterId(PersonalMessageQueryObject queryObject);

    List<PersonalMessage> queryForChatRecords(PersonalMessageQueryObject queryObject);

    void updateState(PersonalMessage personalMessage);
}